<?php
namespace Admin\Controller;
use Admin\Builder\AdminListBuilder;

/**
 * 行为控制器
 * @author huajie <banhuajie@163.com>
 */
class AppController extends AdminController{
	public function login(){
		$member=M('Member');
		if (IS_GET)
		{
			$data['nickname']=I("nickname");
			$data['password']=I("password");
		    $list=$member->where($data)->select();
		    
		    if($list)
		    {
		    	$response['lp']=1;
		    	$response['data']=$list;
		    	echo $this->ajaxReturn($response,'JSON');
		    }
		    else
		     {
		     	$response['lp']=0;
		     	$response['data']['error']=0;
		     	$response['data']['msg']='出错啦！！！';
		     	echo $this->ajaxReturn($response,'JSON');
		    } 
						
		}
	} 
}